import request from '@/utils/request'

// 查询应急救援组织管理列表
export function listSysEmergencyOrganization(query) {
    return request({
        url: '/emergency/sysEmergencyOrganization/list',
        method: 'get',
        params: query
    })
}

// 查询应急救援组织管理详细
export function getSysEmergencyOrganization(id) {
    return request({
        url: '/emergency/sysEmergencyOrganization/' + id,
        method: 'get'
    })
}

// 新增应急救援组织管理
export function addSysEmergencyOrganization(data) {
    return request({
        url: '/emergency/sysEmergencyOrganization',
        method: 'post',
        data: data
    })
}

// 修改应急救援组织管理
export function updateSysEmergencyOrganization(data) {
    return request({
        url: '/emergency/sysEmergencyOrganization',
        method: 'put',
        data: data
    })
}

// 删除应急救援组织管理
export function delSysEmergencyOrganization(id) {
    return request({
        url: '/emergency/sysEmergencyOrganization/' + id,
        method: 'delete'
    })
}
